﻿using System.Collections.Generic;
using System.Threading.Tasks;
using System.Threading;
using SIG.Model.FQAs;

namespace SIG.Service
{
    public interface IQuestionService : IEntityService<Question>
    {
        Task<IList<Question>> GetActiveElementsAync(CancellationToken cancellationToken = default(CancellationToken));
        Question GetQuestionDetail(int id);
        List<Question> GetPagedActiveElements(int pageIndex, int pageSize, string keyword, int? categoryId, out int totalCount);

      
        List<Question> GetPagedElements(int pageIndex, int pageSize, string keyword, int? categoryId, out int totalCount);

        IEnumerable<Question> LatesterQuestions(int count);
        IEnumerable<Question> LatesterQuestions(int count, int categoryId);
    }
}
